package com.laf.manager.service;


import com.laf.manager.controller.dto.PointsDeductionDto;
import com.laf.manager.dto.PointsDeduction;
import com.laf.manager.querycondition.DeductionQueryCondition;
import com.laf.manager.schedule.ScheduleConfig;

import java.util.List;

/**
 * @author ygl
 * @create 2019-01-02
 * @DESCRIPTION
 **/
public interface PointsDeductionService {

    List<PointsDeduction> findByStatus(int status);

    void updateStatus(PointsDeduction model);

    List<PointsDeduction> findByOffsetNumber(String offsetNumber);

    List<PointsDeductionDto> findAll();

    List<PointsDeductionDto> findByMemberName(String memberName);

    List<PointsDeductionDto> getList(DeductionQueryCondition condition);

    int getCountList(DeductionQueryCondition condition);

    boolean startTask(ScheduleConfig scheduleConfig,int minute);

    boolean closeTask(ScheduleConfig scheduleConfig);
}
